package cn.xiqi.cms.hibernate.service;

import java.util.List;

import cn.xiqi.cms.hibernate.DAO.RoleDAO;
import cn.xiqi.cms.hibernate.beans.Roleinfo;

public interface RoleService {
	
	public int add(Roleinfo record);
	public boolean delete(Roleinfo record);
	public boolean changename(int id, String name);
	public boolean setPower(int id, String power);
	public List<Roleinfo> getAll();
	public Roleinfo getByID(int id);
	public String getPower(int id);
	public void setDao(RoleDAO dao);
}
